package com.demo.design.behavioral.chain;

import com.demo.design.behavioral.chain.impl.ApparentPowerHandler;
import com.demo.design.behavioral.chain.impl.PowerHandler;
import com.demo.design.behavioral.chain.impl.ReadDataHandler;

public class HandlerMain {

    public static void main(String[] args) {
        Handler root = new ReadDataHandler();
        root.setNext(new PowerHandler()).setNext(new ApparentPowerHandler());
        root.operate();

    }
}
